<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>014-Map的基本操作.html</title>
</head>
<body>
	
</body>
<script>
	// let obj = {}
	// let obj1 = {id:1002}
	// let obj2 = {id:1003}
	
	const m = new Map()
	let obj1 = {id:1002}
	let obj2 = {id:1001}
	
	m.set('name','chris')
	m.set('name','tom')
	m.set('obj1''xxx')
	m.set('obj2''zzz')
	console.log(m.delete(obj2))
	console.log(m.get(obj2))
	console.log(m.has(obj1))
	console.log(m.size)
</script>
</html>